<?php
	class RegisterView{
		private $m_username = "username";
		private $m_password = "password";
		private $m_repeatpassword = "repeatpassword";
		private $m_add = "adduser";
		
		public function DoRegisterBox(){
			$DoRegister = NULL;
			$DoRegister .="<form name='addform' method='get'>";
			$DoRegister .= 	"<input type='text' name='$this->m_username'>";
			$DoRegister .= 	"<input type='password' name='$this->m_password'>";
			$DoRegister .= 	"<input type='password' name='$this->m_repeatpassword'>";
			$DoRegister .= 	"<input type='submit' name='$this->m_add' value='Login'>";
			$DoRegister .= "</form>";
			return $DoRegister;
		}
		public function GetPassword(){
			if(isset($_GET[$this->m_password]) != "" && isset($_GET[$this->m_password]) == isset($_GET[$this->m_repeatpassword])){
				return $_GET[$this->m_password];
			}
			return NULL;
		}
		public function GetUsername(){
			if(isset($_GET[$this->m_username])){
				return	$_GET[$this->m_username];	
			}
		}
	}
?>